home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
...taking it to the Macs!
/
...taking it to the Macs!.iso
/
Extras
/
ActiveX Mac SDK
/
ActiveX SDK
/
Control Common
/
CEnumConnections.h
< prev
next >
Wrap
Text File
|
1996-10-17
|
899b
|
30 lines
class CEnumConnections : public IEnumConnections
{
public:
CEnumConnections(LArray* ConnectArray);
~CEnumConnections(void);
// *** IUnknown methods ***
STDMETHOD(QueryInterface)(REFIID RefID, void** Obj);
STDMETHOD_(ULONG, AddRef)(void);
STDMETHOD_(ULONG, Release)(void);
// IEnumConnections methods
STDMETHOD(Next)(THIS_ unsigned long NumRequested,
CONNECTDATA* ConnectData,
unsigned long* NumReturned);
STDMETHOD(Skip)(THIS_ unsigned long NumSkip);
STDMETHOD(Reset)(THIS) { return E_NOTIMPL; }
STDMETHOD(Clone)(THIS_ IEnumConnections** Enum);
private:
unsigned long m_RefCount; // Ref counting
IUnknown* m_Unknown; // controlling unknown
unsigned long m_NumConnections; // Number of connections to enumerate
unsigned long m_Current; // Current position in the enumeration
LArray* m_ConnectArray; // Array of things we enumerate
};